//
//  KKNetworkRequest.h
//  Questionnaire
//
//  Created by leo on 16/1/24.
//  Copyright © 2016年 leo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KKNetworkRequest : NSObject

@property (nonatomic, copy) NSString *requestURL;
@property (nonatomic, copy) NSDictionary *requestParmeters;
@property (nonatomic, copy) NSString *responseClassName;

@property (nonatomic, readonly) NSData *postData;
@property (nonatomic) BOOL debug;
@property (nonatomic) BOOL showAlert;

/**
 *  发送短信
 *
 *  @param mobile 手机号
 *
 *  @return request对象
 */
+ (instancetype)sendMessageRequestWithMobile:(NSString*)mobile;

//  注册商户信息
+ (instancetype)merchantregistRequestWithMobile:(NSString*)mobile password:(NSString*)password authcode:(NSString*)authcode;

//  登录
+ (instancetype)loginRequestWithMobile:(NSString*)mobile password:(NSString*)password;

//  查询商家信息
+ (instancetype)storeInfoRequestWithStoreNO:(NSString*)storeNO;

//  商户认领
+ (instancetype)storeApplystoreRequestWithUserNO:(NSString*)userNO storeNO:(NSString*)storeNO storeName:(NSString*)storeName storeAddress:(NSString*)storeAddr IDCardNO:(NSString*)IDCardNO principal:(NSString*)principal IDCardPic:(NSData*)idCardPic businessLicensePic:(NSData*)businessLicensePic;

//  查询所有商户信息
+ (instancetype)storelistRequestWithSearch:(NSString*)searchText startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  查询客人列表
+ (instancetype)custlistRequestWithStoreNO:(NSString*)storeNO search:(NSString*)searchText startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  新增/修改客人
+ (instancetype)custInfoUpdateRequestWithStoreNO:(NSString*)storeNO custName:(NSString*)name custMobile:(NSString*)mobile custAddress:(NSString*)address custBirthDay:(NSString*)birthDay custGender:(NSString*)gender custLevel:(NSString*)level nextBachDate:(NSString*)bachDate nextHairDate:(NSString*)hairDate nextDriftDate:(NSString*)driftDate remark:(NSString*)remark custNO:(NSString*)custNO;

//  批量新增客人
+ (instancetype)custBatchAddCustRequestWithStoreNO:(NSString*)storeNO custs:(NSArray*)custs;

//  删除客人
+ (instancetype)custDeleteRequestWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO;

//  客人宠物列表
+ (instancetype)custPetlistRequestWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO;

//  新增/修改宠物
+ (instancetype)custUpdatePetInfoRequestWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO petName:(NSString*)name petCategory:(NSString*)category petSize:(NSString*)size petWeight:(NSString*)weight petAge:(NSString*)age isDirift:(NSString*)dirift isVaccine:(NSString*)vaccine remark:(NSString*)remark petNO:(NSString*)petNO;

//  删除宠物
+ (instancetype)custDeletePetRequestWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO petNO:(NSString*)petNO;

//  宠物详情
+ (instancetype)custDetailInfoRequestWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO;

//  生日提醒
+ (instancetype)custbirthdaylistRequestWithStoreNO:(NSString*)storeNO startDate:(NSString*)startDate endDate:(NSString*)endDate startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  洗护提醒
+ (instancetype)custbachlistRequestWithStoreNO:(NSString*)storeNO startDate:(NSString*)startDate endDate:(NSString*)endDate startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  储值纪录
+ (instancetype)custAcctountBalanceHistoryWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  查询商品列表
+ (instancetype)goodsListRequestWithStoreNO:(NSString*)storeNO search:(NSString*)searchText startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  商品分类查询
+ (instancetype)selecTableListRequestWithStoreNO:(NSString*)storeNO search:(NSString*)searchText;

//  商品详情
+ (instancetype)goodsDetailInfoRequestWithStoreNO:(NSString*)storeNO prodNO:(NSString*)prod_no;

//  新增／修改商品
+ (instancetype)goodsEditRequestWithStoreNO:(NSString*)storeNO name:(NSString*)name pinyin:(NSString*)pinyin price:(NSString*)price cost:(NSString*)cost categoryNO:(NSString*)categoryNO status:(NSString*)status desc:(NSString*)desc size:(NSString*)size image:(NSData*)image prodNO:(NSString*)prod_no;

//  删除商品
+ (instancetype)goodsDeleteRequestWithStoreNO:(NSString*)storeNO prodNO:(NSString*)prod_no;

//  商品分类
+ (instancetype)goodsCategoryListRequest;

//  消费／充值
+ (instancetype)orderAddRequestWithStoreNO:(NSString*)storeNO transDate:(NSString*)date custNO:(NSString*)custNO orderType:(NSString*)orderType totalAmt:(NSString*)totalAmt payedAmt:(NSString*)payedAmt remark:(NSString*)remark userNO:(NSString*)userNO orderDetails:(NSArray*)orderDetails orderPayments:(NSArray*)orderPayments;

//  取消订单
+ (instancetype)orderCancelOrderRequestWithStoreNO:(NSString*)storeNO orderNO:(NSString*)orderNO;

//  销售列表
+ (instancetype)orderListRequestWithStoreNO:(NSString*)storeNO startDate:(NSString*)startDate endDate:(NSString*)endDate startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  余额变更历史
+ (instancetype)orderAcctBalanceHistoryRequestWithStoreNO:(NSString*)storeNO custNO:(NSString*)custNO startDate:(NSString*)startDate endDate:(NSString*)endDate startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

//  支付方式查询
+ (instancetype)sytemPaymentListRequest;

//  文件上传
+ (instancetype)systemUploadfileWithCode:(NSString*)code fileType:(NSString*)fileType fileData:(NSData*)fileData fileName:(NSString*)fileName;

@end
